﻿using EnterpriseAssets.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace EnterpriseAssets
{
    /// <summary>
    /// 映射数据库类
    /// </summary>
    public class CodeFirstContext: DbContext
    {
        //构造函数
        public CodeFirstContext()
            : base("name = EnterpriseAssets")
        {
        }
        public DbSet<FixedAssetInfo> fixedAssetInfo { get; set; } //资产信息实体
    }
}